﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HFController;
namespace HFWebApp.user
{
    public partial class uc_DelegateList : BagePages
    {
        public string PageString { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.checkAccountIsLogin();
            hf.Model.User user = this.getLoginAccount();
            int PageSize = 10;
            int PageNumber = 1;
            if (this.GetQuery("Page") != "")
            {
                PageNumber = int.Parse(this.GetQuery("Page"));
            }
            int total = 0;
            string strWhere = "UserID=" + user.ID.ToString();

            Repeater1.DataSource = DelegateController.getController().getCaseDelegateList(PageSize ,PageNumber ,strWhere ,out total);
            Repeater1.DataBind();
            PageString = LLL.Pager.TrunPageHtmlCode_Web(PageSize, PageNumber, total, "");
        }
    }
}